<?php
/**
 * Created by IntelliJ IDEA.
 * User: jimmyhsu
 * Date: 2017/3/30
 * Time: 10:27
 */
$dbhost = "127.0.0.1";
$dbuser = "root"; //我的用户名
$dbpass = "aB82726221"; //我的密码
$dbname = "daowei"; //我的mysql库名
$cn = mysqli_connect($dbhost,$dbuser,$dbpass) or die("connect error");
mysqli_select_db($cn, $dbname)or die("db error");
mysqli_query($cn, "set names 'utf8'");